package com.immunology.service.impl;

import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.immunology.dao.SurveyAnswerDao;
import com.immunology.domain.Role;
import com.immunology.domain.SurveyAnswer;
import com.immunology.exception.DaoException;
import com.immunology.service.SurveyAnswerService;

@Service
public class SurweyAnswerServiceImpl implements SurveyAnswerService{

	@Autowired
	private SurveyAnswerDao surveyAnswerDao;

	@Override
	public SurveyAnswer findById(Long id) throws DaoException {
		return surveyAnswerDao.findById(id);
	}

	@Override
	public List<SurveyAnswer> getAll() throws DaoException {
		return surveyAnswerDao.getAll();
	}

	@Override
	public void saveOrUpdate(Collection<SurveyAnswer> entities)
			throws DaoException {
		surveyAnswerDao.saveOrUpdate(entities);
	}

	@Override
	public void saveOrUpdate(SurveyAnswer... entities) throws DaoException {
		surveyAnswerDao.saveOrUpdate(entities);
	}

	@Override
	public void update(Collection<SurveyAnswer> entities) throws DaoException {
		surveyAnswerDao.update(entities);
	}

	@Override
	public void update(SurveyAnswer... entities) throws DaoException {
		surveyAnswerDao.update(entities);
	}

	@Override
	public void delete(Collection<SurveyAnswer> entities) throws DaoException {
		surveyAnswerDao.delete(entities);
	}
	
	@Override
	public void delete(SurveyAnswer... entities) throws DaoException {
		surveyAnswerDao.delete(entities);
	}

	@Override
	public void deleteAll() throws DaoException {
		surveyAnswerDao.deleteAll();
	}

	@Override
	public void save(Collection<SurveyAnswer> entities) throws DaoException {
		surveyAnswerDao.save(entities);
	}

	@Override
	public void save(SurveyAnswer... entities) throws DaoException {
		surveyAnswerDao.save(entities);
	}
}
